package com.ycp.erp.role.presenter;

import android.content.Context;

import com.one.common.presenter.BaseApiPresenter;
import com.one.common.view.base.BaseActivity;
import com.one.common.view.base.IListView;
import com.ycp.erp.brand.model.BrandModel;
import com.ycp.erp.role.model.RoleModel;
import com.ycp.erp.role.model.bean.Role;

import java.util.ArrayList;

/**
 * Class Des:
 * Created by bjh on 2021/8/24.
 */
public class RolePresenter extends BaseApiPresenter<IListView, RoleModel> {
    public RolePresenter(IListView mView, Context mContext) {
        super((IListView) mView, mContext, new RoleModel((BaseActivity) mContext));
    }
    public void getRoles(){
        ArrayList<Role> roles =new ArrayList<>();
        Role role1=new Role();
        role1.setName("管理");
        role1.setRolePhone("15689954995");
        roles.add(role1);
        Role role2=new Role();
        role2.setName("仓库管理员");
        role2.setRolePhone("15689954995");
        roles.add(role2);
        Role role3=new Role();
        role3.setName("入库");
        role3.setRolePhone("15689954995");
        roles.add(role3);
        mView.loadSuccess(roles);
    }
}
